package com.example.demo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.mapper.DeptMapper;

import com.example.demo.model.po.Dept;
import com.example.demo.service.DeptService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

@Service("deptService")
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements DeptService {

    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<Dept> queryAll(Integer deptId, String deptName) {

        return deptMapper.queryAll(deptId,deptName);
    }
}
